package com.shu.part_login;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;

import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;

import java.lang.ref.WeakReference;

public class WelcomeActivity extends AppCompatActivity implements Handler.Callback {
    private Handler handler = new Handler(this);
    private FrameLayout lv;
    private ImageView app_icon;
    private ImageView welcome_bg;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        lv = findViewById(R.id.welcome);
        lv.setSystemUiVisibility(View.INVISIBLE);
        welcome_bg = findViewById(R.id.welcome_bg);
        Glide.with(this).load(R.mipmap.welcomebg).into(welcome_bg);
        app_icon = findViewById(R.id.app_icon);
        Glide.with(this).load(R.mipmap.welcome_icon).into(app_icon);
        //handler.sendEmptyMessageDelayed(0x11, 2000);
    }

    @Override
    public boolean handleMessage(Message msg) {
        startActivity(new Intent(this, LoginActivity.class));
        finish();
        return false;
    }

}
